<?php  
require_once "../../../include.php";
checkLogin();
$sql="select id,cName from cate";
$row=fetchOne($sql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
	<title>添加产品</title>
	<link rel="stylesheet" href="../../vender/sui/sui.min.css">
	<link rel="stylesheet" href="../../css/style.css">
	<link rel="stylesheet" href="../../css/admin.css">
</head>
<body>
<div class="content-title">
	<h4>添加产品</h4>
	<a href="javascript:;" class="goback" onclick="goBack()"><<返回列表</a>
</div>
<div class="content-wrapper">
	<form id="productAdd" class="sui-form form-horizontal  sui-validate" novalidate="novalidate" method="post" action="../../testApi/testFormPost.php">
	    <div class="control-group">
	      <label class="control-label">产品名称：</label>
	      <div class="controls">
	        <input type="text" name="name" placeholder="产品名称"  class="input-fat" data-rules="required">
	      </div>
	    </div>
	    <div class="control-group">
	      <label class="control-label">产品编号：</label>
	      <div class="controls">
	        <input type="text" name="productId" placeholder="产品编号"  class="input-fat" data-rules="required">
	      </div>
	    </div>
	    <div class="control-group">
	      <label class="control-label">产品分类：</label>
	      <div class="controls">
		      <select name="proClass" class="input-fat" data-rules="required">
		      	<option value="">请选择</option>
	            <option value="1">骑马</option>
	            <option value="2">爬山</option>
	          </select> 
	      </div>
	    </div>
		<div class="control-group">
			<label class="control-label">产品描述：</label>
			<div class="controls">
				<textarea style="height: 100px;" class="input-xlarge" name="illustrate"></textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">产品封面：</label>
			<div class="controls">
				<div class="uploadbox">
					添加
					<input type="file" id="uplogo" class="fileImg" accept="image/*"/>
					<input type="hidden" value="" id="cover" name="cover"> 
					<img class="uploadImg">
				</div>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">价格：</label>
			<div class="controls">
				<div class="input-prepend input-append">
					<input type="text" name="price" placeholder="现价" class="input-fat" data-rules="required">
					<span class="add-on">元</span>
				</div>
				<div class="input-prepend input-append">
					<input type="text" name="oriPrice" placeholder="原价" class="input-fat">
					<span class="add-on">元</span>
				</div>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">销量：</label>
			<div class="controls">
				<input type="text" name="sales" placeholder="销量" class="input-fat" value="0">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">支持预约：</label>
			<div class="controls">
				<label data-toggle="radio" class="radio-pretty inline checked">
					<input type="radio" name="apponitment" value="1" checked><span>支持</span>
				</label>
				<label data-toggle="radio" class="radio-pretty inline">
					<input type="radio" name="apponitment" value="0"><span>不支持</span>
				</label>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">图文详情：</label>
			<div class="controls">
				<textarea id="teletext" name="teletext" style="width:700px;height:300px;">
				
				</textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">购买须知：</label>
			<div class="controls">
				<textarea id="notice" name="notice" style="width:700px;height:300px;">
				
				</textarea>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">状态：</label>
			<div class="controls">
				<label data-toggle="radio" class="radio-pretty inline checked">
					<input type="radio" name="state" value="1" checked><span>上架</span>
				</label>
				<label data-toggle="radio" class="radio-pretty inline">
					<input type="radio" name="state" value="0"><span>下架</span>
				</label>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">归属账号：</label>
			<div class="controls">
				<input type="text" name="shopUsername" placeholder="产品所归属的账号" class="input-fat">
			</div>
		</div>
	    <div class="control-group">
	      <label class="control-label"></label>
	      <div class="controls">
	        <button type="submit" class="sui-btn btn-primary">保存</button>
	      </div>
	    </div>
	</form> 
</div>
</body>
</html>
<script src="../../vender/jquery/jquery-1.11.1.js"></script>
<script src="../../vender/jquery/jquery.alerts.js"></script>
<script src="../../vender/sui/sui.js"></script>
<script src="../../vender/kindeditor/kindeditor-all-min.js"></script>
<script src="../../vender/kindeditor/lang/zh_CN.js"></script>
<script src="../../scripts/admin.js"></script>
<script src="../../scripts/shop/product.js"></script>